package com.yonyou.cloud.member.adapters.repository.orm.dao;

import com.yonyou.cloud.member.domainmodel.entities.coupon.Coupon;
import com.yonyou.cloud.member.domainmodel.vo.CouponId;
import com.yonyou.cloud.member.domainmodel.entities.coupon.CouponStatusEnum;
import com.yonyou.cloud.member.domainmodel.vo.MemberId;

import java.util.List;

public interface CouponDao {
    Coupon find(CouponId couponId);

    List<Coupon> listByMember(MemberId memberId);

    boolean updateStatus(CouponId couponId, CouponStatusEnum status);

    boolean reset();
}
